<?php
class userList extends adminBase {
    function __construct() {
        parent::__construct();
        $this->cms->setPageTitle("用户管理");

        $this->fieldAdd("id","ID",self::TYPE_PRIMARY,self::TABLE_STRING,self::FORM_HIDDEN);
        $this->fieldAdd("user","用户名",self::TYPE_VARCHAR,self::TABLE_STRING,self::FORM_TEXT);
        $this->fieldAdd("real_name","姓名",self::TYPE_VARCHAR,self::TABLE_STRING,self::FORM_TEXT);
        $this->fieldAdd("email","邮箱",self::TYPE_VARCHAR,self::TABLE_STRING,self::FORM_TEXT);
        $this->fieldAdd("tel","手机号",self::TYPE_VARCHAR,self::TABLE_STRING,self::FORM_TEXT);
        $this->fieldAdd("company","所在单位",self::TYPE_VARCHAR,self::TABLE_STRING,self::FORM_TEXT);
        $this->fieldAdd("school","毕业院系",self::TYPE_VARCHAR,self::TABLE_STRING,self::FORM_TEXT);
        $this->fieldAdd("graduation","毕业年月",self::TYPE_TIMESTAMP,self::TABLE_DATE,self::FORM_TEXT);
        $this->fieldAdd("enable","是否审核",self::TYPE_VARCHAR,self::TABLE_STRING,self::FORM_NONE);

        $this->mode=UserModule::init();
        $this->addControl(false, true);
    }
}